package com.briup.jdbc.execute;

import java.sql.Connection;

public abstract class AbstractExecute {
	// sql
	// sql语句
	String sql;

	// a class ,including some params,and same back class
	// 返回值类型
	Class param;

	// contains which inquired about attributes
	// 条件值
	Object[] params;

	// 数据库连接
	Connection conn;

	public Connection getConn() {
		return conn;
	}

	public void setConn(Connection conn) {
		this.conn = conn;
	}

	public AbstractExecute() {
		super();
	}

	public AbstractExecute(String sql, Class param) {
		super();
		this.sql = sql;
		this.param = param;
	}

	public AbstractExecute(String sql, Class param, Object[] params) {
		super();
		this.sql = sql;
		this.param = param;
		this.params = params;
	}

}
